package secondStage.part2.接口.four;

/**
 * @ClassName: [PersonDemo]
 * @Description: 测试类
 * @Author: [黄劲松]
 * @CreateDate: [2021-03-14]
 * @Version: [v1.0]
 */
public class PersonDemo {
    public static void main(String[] args) {
        //创建对象
        PingPangPlayer ppp = new PingPangPlayer();
        ppp.setName("王浩");
        ppp.setAge(22);
        System.out.println(ppp.getName() + "," + ppp.getAge());
        ppp.eat();
        ppp.study();
        ppp.speak();
        System.out.println("===========");

        BastetballPlayer bp = new BastetballPlayer();
        bp.setName("你好");
        bp.setAge(33);
        System.out.println(bp.getName() + "," + bp.getAge());
        bp.eat();
        bp.study();
    }
}
